package com.xxh.search.service.impl;

import com.xxh.Interface.DubboSearchService;
import com.xxh.dataaccess.entity.Video;
import com.xxh.search.service.SearchService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class DubboSearchServiceImpl implements DubboSearchService {

    @Autowired
    SearchService service;



    @Override
    public void saveVideo(Video video) {
        service.SaveVideotoEs(video);
    }


    @Override
    public int creatOrUpdateIndex(String bv) {

        return service.creatOrUpdateIndex(bv);
    }
}
